// app.ts
App<IAppOption>({
    globalData: {},
    onLaunch() {
        wx.cloud.init({
            env: 'cloud1-1gfv8n7x73b5deb4', //填上你的云开发环境id
            traceUser: true,
        })
        // 如果已经登录
        const user = wx.getStorageSync('user');
        if (user) {
            wx.navigateTo({
                url: 'pages/homePage/homePage',
            });
        }
    },
})